<template>
  <component v-bind:is="currentTabComponent"
             :themeId=themeId
             @childData="childData"></component>
</template>
<script>

import define from '@/views/quota/define/define'
import tableColumn from '@/views/quota/define/tableColumn'

export default {
  name:"index",
  components: { define, tableColumn },
  data() {
    return {
      themeId: undefined,
      currentTabComponent: 'define',
    }
  },
  computed: {},
  watch: {},
  created() {
  },
  mounted() {
  },
  methods: {
    childData(data) {
      if (data.tabComponent != undefined) {
        this.currentTabComponent = data.tabComponent
      }
      if (data.themeId != undefined) {
        this.themeId = data.themeId
      }
    }

  }
}

</script>
<style>
.demonstration {
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
</style>
